<template>
  <div class="tabCon">
    <div v-for="(itemCon,index) in 10" :key="index" class="tabList" @click="routerLink(`orderDetails`)">
      <div class="listPic">
        <img src="@/assets/pic2.png" alt>
      </div>
      <div class="listName">庆阳红富士1.5kg</div>
      <div class="listPrise">
        ￥
        <span>39.9</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    routerLink(href) {
      this.$router.push({
        name: href
      })
    }
  }
}
</script>

<style lang="less">
.container {
  width: 100%;
  background: #f5f6f8;
  .search {
    width: 100%;
    margin: 0 auto;
    height: 50px;
    line-height: 50px;
    // border: 1px solid #000;
  }
  .cont {
    width: 100%;
    display: flex;
    margin-top: 8px;
    .menuList {
      width: 25%;
      height: 150vw;
      background: #fff;
      .nav {
        height: 50px;
        line-height: 50px;
        text-align: center;
        // border: 1px solid #000;
      }
    }
    .tabCon {
      height: auto;
      width: 100%;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      margin: 0 7px;
      height: auto;
      overflow: scroll;
         background: #f5f6f8;
      .tabList {
        width: 48%;
        // border: 1px solid;
        margin: 5px 0;
        background: #fff;
        .listPic {
         width: 120px;
        //  height: 144px;
        //   border:1px solid #000;
          img {
            width: 100%;
          }
        }
        .listName {
          font-size: 14px;
          color: #000;
          font-weight: bold;
          padding: 5px;
          width: 95%;
        }
        .listPrise {
          color: #d63a54;
          font-size: 16px;
          span {
            font-size: 20px;
          }
        }
      }
    }
  }
}
</style>
